package com.fingard.csp.mapper.datasourcefirst.simulate;

import com.fingard.csp.domain.simulate.SimulateRuleDetail;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 模拟规则明细表数据库操作接口
 *
 * @author fanghh
 * @date 2021.7.20
 * @version v1.0.1
 */
@Mapper
public interface SimulateRuleDetailMapper {
    /**
     * 查找所有规则明细
     *
     * @return
     */
    @Select("select * from t_simulate_rule_detail")
    List<SimulateRuleDetail> findAll();

    /**
     * 按规则ID找到规则明细
     *
     * @param SimulateRuleDetail
     * @return
     */
    @Select("select * from t_simulate_rule_detail where ruleid = #{ruleid} and isactive='1'")
    List<SimulateRuleDetail> findByRuleId(SimulateRuleDetail SimulateRuleDetail);
}